//
//  String+Extension.swift
//  MagoT
//
//  Created by mac on 2023/12/23.
//

import Foundation
import UIKit


extension String {
    func size(withFont font: UIFont) -> CGSize {
        let attributes = [NSAttributedString.Key.font: font]
        return (self as NSString).size(withAttributes: attributes)
    }
}
